//
//  ByNoticeTitleView.m
//  caipiao_ios
//
//  Created by mc on 2018/7/27.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByNoticeTitleView.h"

@implementation ByNoticeTitleView

- (id)init{
    self = [super init];
    if (self) {
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(10);
            make.centerY.equalTo(self).offset(0);
            make.height.mas_equalTo(@20);
            make.width.mas_equalTo(@60);
        }];
        
        titleLabel.font = FONT(14);
        titleLabel.textColor = [UIColor blackColor];
        titleLabel.textAlignment = NSTextAlignmentLeft;
        titleLabel.text = @"双色球";
        
        
        UILabel *timeLabel = [[UILabel alloc] init];
        [self addSubview:timeLabel];
        [timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(titleLabel.mas_right).offset(10);
            make.right.equalTo(self).offset(-10);
            make.height.mas_equalTo(@15);
            make.centerY.equalTo(self).offset(0);
        }];
        timeLabel.textColor = [UIColor lightGrayColor];
        timeLabel.font = FONT(12);
        timeLabel.text = @"2018-06-26 10:50:00";
        timeLabel.textAlignment = NSTextAlignmentLeft;
        
        self.titleLabel = titleLabel;
        self.timeLabel = timeLabel;
    }
    return self;
}

@end
